package JavaSEAdvance.day01_extends.d012_extends;

/**
 * @author Xiao
 * @date 2021/7/15
 */
public class Programmer extends Employee {
    public Programmer() {
    }

    public Programmer(String name, int age, int salary) {
        super(name, age, salary);
    }

    @Override
    public String toString() {
        return "Programmer{" +
                "name='" + getName() + '\'' +
                ", age=" + getAge() +
                ", salary=" + getSalary() +
                '}';
    }

    public void touchFish () {
        System.out.println("摸鱼是一门艺术");
    }

    @Override
    public void working() {
        System.out.println("每天第一件事情就是down代码");
        System.out.println("第二件事情就是聊天");
        System.out.println("第三件事情就是开始摸鱼");
        System.out.println("……");
        System.out.println("要下班的时候准备写半小时代码");
        System.out.println("提交代码，下班回家");
    }
}
